package de.thm.softwareprojekt.personen.mitarbeiter;

public class CJob {
	
	private int jobid;
	private String jobbez;
	private double stdlohn;
	private String waehrung;
	
	public CJob(){
		
	}
	
	public CJob(int id,String bez, double lohn, String waehrung){
		this.jobid = id;
		this.jobbez = bez;
		this.stdlohn = lohn;
		this.waehrung = waehrung;
	}
	
	public String toString(){
		return this.jobbez + " " + this.stdlohn + " " + this.waehrung;
	}

	public int getJobid() {
		return jobid;
	}

	public void setJobid(int jobid) {
		this.jobid = jobid;
	}

	public String getJobbez() {
		return jobbez;
	}

	public void setJobbez(String jobbez) {
		this.jobbez = jobbez;
	}

	public double getStdlohn() {
		return stdlohn;
	}

	public void setStdlohn(double stdlohn) {
		this.stdlohn = stdlohn;
	}

	public String getWaehrung() {
		return waehrung;
	}

	public void setWaehrung(String waehrung) {
		this.waehrung = waehrung;
	}
	
	public int convertBezeichnungToID(String bez){
		if(bez.equals("Barkeeper"))
			return 1;
		if(bez.equals("Service"))
			return 2;
		if(bez.equals("Logistiker"))
			return 3;
		else return 0;
	}
}
